export const getDieChange_State = (state, data) => {
  console.log("换模车传过来的值==>", data);
  //    换模小车数据判断

  if (state.DieChange_State[0].isErr == data.valu[10].v) {
  } else {
    if (data.valu[10].v == 1) {
      state.DieChange_State[0].isErr = data.valu[10].v;
      state.DieChange_State[0].hint.error = "换模车出现故障，请派人进行检查";
      state.DieChange_State[0].img = require("../../assets/images/direct01-fault2.gif");
      state.DieChange_State[0].isactive = true;
    } else {
      state.DieChange_State[0].isErr = data.valu[10].v;
      state.DieChange_State[0].error = "换模车正常运行";
      state.DieChange_State[0].img = require("../../assets/images/direct01.png");
    }
  }

  if (state.DieChange_State[0].isChangeA == data.valu[0].v) {
  } else {
    if (data.valu[0].v == 1) {
      state.DieChange_State[0].isChangeA = data.valu[0].v;
      state.DieChange_State[0].hint.change1 = "1号台车换模中！！！！";
      state.Conveyor_State[0].img = require("../../assets/images/feed03.gif");
      state.Conveyor_State[0].class = "conveyor conveyor-01";
    } else {
      state.DieChange_State[0].hint.change1 = "";
      state.DieChange_State[0].isChangeA = data.valu[0].v;
    }
  }

  if (state.DieChange_State[0].isChangeB == data.valu[1].v) {
  } else {
    if (data.valu[1].v == 1) {
      state.DieChange_State[0].hint.change2 = "2号台车换模中！！！！";
      state.DieChange_State[0].isChangeA = data.valu[1].v;
      state.Conveyor_State[1].img = require("../../assets/images/feed03.gif");
      state.Conveyor_State[1].class = "conveyor conveyor-02";
    } else {
      state.DieChange_State[0].hint.change2 = " ";
      state.DieChange_State[0].isChangeA = data.valu[1].v;
    }
  }

  if (state.DieChange_State[0].isChangeB == data.valu[2].v) {
  } else {
    if (data.valu[2].v == 1) {
      state.DieChange_State[0].isChangeB = data.valu[2].v;
      state.DieChange_State[0].hint.change3 = "3号台车换模中！！！！";
      state.Conveyor_State[2].img = require("../../assets/images/feed03.gif");
      state.Conveyor_State[2].class = "conveyor conveyor-03";
    } else {
      state.DieChange_State[0].hint.change3 = "";
      state.DieChange_State[0].isChangeB = data.valu[2].v;
    }
  }

  if (state.DieChange_State[0].isChangeB == data.valu[3].v) {
  } else {
    if (data.valu[3].v == 1) {
      state.DieChange_State[0].isChangeB = data.valu[3].v;
      state.DieChange_State[0].hint.change4 = "4号台车换模中！！！！";
      state.Conveyor_State[3].img = require("../../assets/images/feed03.gif");
      state.Conveyor_State[3].class = "conveyor conveyor-04";
    } else {
      state.DieChange_State[0].hint.change4 = "";
      state.DieChange_State[0].isChangeB = data.valu[3].v;
    }
  }

  if (state.DieChange_State[0].isChangeB == data.valu[4].v) {
  } else {
    if (data.valu[4].v == 1) {
      state.DieChange_State[0].hint.change5 = "5号台车换模中！！！！";
      state.DieChange_State[0].isChangeB = data.valu[4].v;
      state.Conveyor_State[4].img = require("../../assets/images/feed03.gif");
      state.Conveyor_State[4].class = "conveyor conveyor-05";
    } else {
      state.DieChange_State[0].hint.change5 = "";
      state.DieChange_State[0].isChangeB = data.valu[4].v;
    }
  }
  if (state.DieChange_State[0].isChangeB == data.valu[5].v) {
  } else {
    if (data.valu[5].v == 1) {
      state.DieChange_State[0].hint.change1 = "1号台车换模完成！！！！";
      state.DieChange_State[0].isChangeB = data.valu[5].v;
      state.Conveyor_State[0].img = require("../../assets/images/feed03.png");
      state.Conveyor_State[0].class = "conveyor-stop conveyor-stop-01";
    } else {
      state.DieChange_State[0].hint.change1 = "";
      state.DieChange_State[0].isChangeB = data.valu[5].v;
    }
  }

  if (state.DieChange_State[0].isChangeB == data.valu[6].v) {
  } else {
    if (data.valu[6].v == 1) {
      state.DieChange_State[0].isChangeB == data.valu[6].v;
      state.DieChange_State[0].hint.change2 = "2号台车换模完成！！！！";
      state.Conveyor_State[1].img = require("../../assets/images/feed03.png");
      state.Conveyor_State[1].class = "conveyor-stop conveyor-stop-02";
    } else {
      state.DieChange_State[0].hint.change2 = "";
      state.DieChange_State[0].isChangeB == data.valu[6].v;
    }
  }
  if (state.DieChange_State[0].isChangeB == data.valu[7].v) {
  } else {
    if (data.valu[7].v == 1) {
      state.DieChange_State[0].isChangeB == data.valu[7].v;
      state.DieChange_State[0].hint.change3 = "3号台车换模完成！！！！";
      state.Conveyor_State[2].img = require("../../assets/images/feed03.png");
      state.Conveyor_State[2].class = "conveyor-stop conveyor-stop-03";
    } else {
      state.DieChange_State[0].isChangeB == data.valu[7].v;
      state.DieChange_State[0].hint.change3 = "";
    }
  }

  if (state.DieChange_State[0].isChangeB == data.valu[8].v) {
  } else {
    if (data.valu[8].v == 1) {
      state.DieChange_State[0].isChangeB = data.valu[8].v;
      state.DieChange_State[0].hint.change4 = "4号台车换模完成！！！！";
      state.Conveyor_State[3].img = require("../../assets/images/feed03.png");
      state.Conveyor_State[3].class = "conveyor-stop conveyor-stop-04";
    } else {
      state.DieChange_State[0].isChangeB = data.valu[8].v;
      state.DieChange_State[0].hint.change4 = "";
    }
  }
  if (state.DieChange_State[0].isChangeB == data.valu[9].v) {
  } else {
    if (data.valu[9].v == 1) {
      state.DieChange_State[0].isChangeB = data.valu[9].v;
      state.DieChange_State[0].hint.change4 = "5号台车换模完成！！！！";
      state.Conveyor_State[4].img = require("../../assets/images/feed03.png");
      state.Conveyor_State[4].class = "conveyor-stop conveyor-stop-05";
    } else {
      state.DieChange_State[0].isChangeB = data.valu[9].v;
      state.DieChange_State[0].hint.change4 = "";
    }
  }
};
